// 用户状态
const user = {
  namespaced: true,
  state: () => ({
    id: '',
    nickname: '',
    avatar: '',
    token: '',
    mobile: ''
  }),
  // 唯一能改变state的数据
  mutations: {
    setUser (state, payload) {
      state.id = payload
    }
  },
  // 异步+mutations
  actions: {},
  // 基于state计算属性
  getters: {}
}
export default user
